Welcome Guest, you are in: Login
CTS Futures

Page History: Reject

Compare Page Revisions



« Older Revision - Back to Page History - Newer Revision »


Page Revision: 2012/09/17 11:20


Message Rejection

FIX Session rule violations are manifested through the Reject message. The receipt of a Reject message signals a serious violation of FIX Session rules. Appropriate action must immediately be taken by the receiver of a Reject message. A rejected message may be retransmitted by the sending application if a correction is appropriate.

The T4 FIX API can detect an extensive set of FIX session violations and will issue a Reject message. Even after a corrected retransmission, the T4 FIX API may choose to terminate the FIX Session per the gravity of the rejection.

Where possible, the T4 FIX API will provide a Reject message with a Reject Reason (Tag 373), Reference Message Type (Tag 372) and Reference Sequence Number (Tag 45). When a FIX session termination is forthcoming due to a FIX Session rejection, the T4 FIX API may provide a Logout message with further details of the violation.

FIX Session rejects can be generated for many reasons - including gross protocol violation as empty tags, tags out of sequence, incorrect data types, etc. Following are common Rejection Reasons (Tag 373) detected by the T4 FIX API:


Rejection Reason

0 = Invalid tag number
1 = Required tag missing
2 = Tag not defined for this message type
3 = Undefined Tag
4 = Tag specified without a value
5 = Value is incorrect (out of range) for this tag#
6 = Incorrect data format for value
7 = Decryption problem
8 = Signature problem
9 = CompID problem
10 = SendingTime accuracy problem
11 = Invalid MsgType
12 = XML Validation error
13 = Tag appears more than once
14 = Tag specified out of required order
15 = Repeating group fields out of order
16 = Incorrect NumInGroup count for repeating group
17 = Non “data” value includes field delimiter (SOH character)


When the FIX Session is terminated due to a FIX Session reject, the T4 FIX API will expect a restart with a new FIX Session and sequence numbers reset to 1.

Message Dictionary

TagField NameReq'dComments
Standard HeaderYMsgType = 9
5RefSeqNumYMsgSeqNum of rejected message
71RefTagIDNThe tag number of the FIX field being referenced.
72RefMsgTypeNThe MsgType of the FIX message being referenced.
73SessionRejectReasonNCode to identify reason for a session-level Reject message.
8TextNWhere possible, message to explain reason for rejection
54EncodedTextLenNNot used. Must be set if EncodedText field is specified and must immediately precede it.
55EncodedTextNNot used. Encoded (non-ASCII characters) representation of the Text field in the encoded format specified via the MessageEncoding field.
Standard TrailerY

Sample Messages


Reject message generated by the receipt of an old Cancel Request message

34=12|49=T4Example|56=CTS|50=T4FIX|52=20120905-21:07:45.472|45=12|372=F|373=10|58=Sending Time Accuracy problem|
[REJECT]
[MsgSeqNum] 34 = 12
[SenderCompID] 49 = T4Example
[TargetCompID] 56 = CTS
[SenderSubID] 50 = T4FIX
[SendingTime] 52 = 20120905-21:07:45.472
[RefSeqNum] 45 = 12
[RefMsgType] 372 = F
[SessionRejectReason] 373 = 10 (SENDINGTIME_ACCURACY_PROBLEM)
[Text] 58 = Sending Time Accuracy problem

34=12|49=CTS|50=TraderName|52=20120828-20:20:14.417|56=T4Example|57=G|142=US,IL|369=11|1=123456|11=11FE|37=533408825203|41=11AN|48=117624|54=2|55=6E|60=20120828-20:20:14.376|107=6EV2 P1140|167=OPT|9717=11AN|1028=Y|
[FIXCANCEL]
[MsgSeqNum] 34 = 12
[SenderCompID] 49 = CTS
[SenderSubID] 50 = TraderName
[SendingTime] 52 = 20120828-20:20:14.417
[TargetCompID] 56 = T4Example
[TargetSubID] 57 = G
[SenderLocationID] 142 = US,IL
[LastMsgSeqNumProcessed] 369 = 11
[Account] 1 = 123456
[ClOrdID] 11 = 11FE
[OrderID] 37 = 533408825203
[OrigClOrdID] 41 = 11AN
[SecurityID] 48 = 117624
[Side] 54 = 2 (SELL)
[Symbol] 55 = 6E
[TransactTime] 60 = 20120828-19:20:14.376
[SecurityDesc] 107 = 6EV2 P1140
[SecurityType] 167 = OPT (OPTION)


FIX API Home Page.

Trade how you want, where you want

support@ctsfutures.com (312) 939 0164

2 Pierce Pl, Suite 200, Itasca, IL 60143

© 2009-2023 Cunningham Trading Systems LLC All rights reserved.